Skip to content

Conversation

lcnr
Copy link
Contributor

@lcnr lcnr commented Mar 24, 2023

r? types

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Mar 24, 2023
@@ -13,7 +13,6 @@ fn main() {

let z: AtomicU32 = 1;
//~^ ERROR mismatched types
//~| HELP call `Into::into` on this expression to convert `{integer}` into `AtomicU32`
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

annoying, we don't have a placeholder for {integer} 🤔 maybe we should instead evaluate and then check whether anything has been constrained?

@bors
Copy link
Collaborator

bors commented Apr 7, 2023

☔ The latest upstream changes (presumably #110036) made this pull request unmergeable. Please resolve the merge conflicts.

@compiler-errors compiler-errors self-assigned this Apr 7, 2023
@jackh726 jackh726 removed their assignment Apr 9, 2023
@lcnr lcnr closed this Apr 10, 2023
bors added a commit to rust-lang-ci/rust that referenced this pull request May 19, 2023
…old, r=jackh726

do not allow inference in `predicate_must_hold` (alternative approach)

See the FCP description for more info, but tl;dr is that we should not return `EvaluatedToOkModuloRegions` if an obligation may hold only with some choice of inference vars being constrained.

Attempts to solve this in the approach laid out by lcnr here: rust-lang#109558 (comment), rather than by eagerly replacing infer vars with placeholders which is a bit too restrictive.

r? `@ghost`
oli-obk pushed a commit to oli-obk/miri that referenced this pull request May 23, 2023
…ckh726

do not allow inference in `predicate_must_hold` (alternative approach)

See the FCP description for more info, but tl;dr is that we should not return `EvaluatedToOkModuloRegions` if an obligation may hold only with some choice of inference vars being constrained.

Attempts to solve this in the approach laid out by lcnr here: rust-lang/rust#109558 (comment), rather than by eagerly replacing infer vars with placeholders which is a bit too restrictive.

r? `@ghost`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants